
#本文件无业务作用，目前只作为pycharm打开，方便代码提示

#PYTHONPATH添加lldb.py路径参考:
#  https://stackoverflow.com/questions/30869945/how-to-import-lldb-in-a-python-script/31005690#31005690
#  https://stackoverflow.com/questions/28326362/pycharm-and-pythonpath/53439589#53439589
import lldb

# lldb --   /pubx/8cc/8cc -c  mini_main.c
# breakpoint set --name __GI___libc_malloc --condition 'bytes > 128'
#   lldb条件断点语法参考:  https://lldb.llvm.org/use/map.html#breakpoint-commands


def breakpoint_function_wrapper_1(frame:lldb.SBFrame, bp_loc:lldb.SBBreakpointLocation,  internal_dict:dict):
    pass

def breakpoint_function_wrapper_2(frame:lldb.SBFrame, bp_loc:lldb.SBBreakpointLocation, extra_args:lldb.SBStructuredData, internal_dict:dict):
    pass
    #以下几行赋值 不是真的要赋值，只是为了写出其类型，以方便代码提示
    # lldb.debugger:lldb.SBDebugger=None;
    # lldb.thread:lldb.SBThread=None;
    # lldb.process:lldb.SBProcess=None

    # lldb.process.Continue()

    # thread = frame.GetThread()
    # process = thread.GetProcess()
    # process.Continue()
    # lldb.debugger.SetAsync(True)

